﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BingVis.GoogleTransit;
using BingVis.Common;

namespace BingVis.WPFClient
{
    public class TransitStopViewModel : ViewModelBase
    {
        public ITransitStop Stop { get; private set; }
        public DelegateCommand<object> Selected { get; private set; }

        public TransitStopViewModel(ITransitStop stop)
            : base()
        {
            Stop = stop;
            Selected = new DelegateCommand<object>(OnSelected);
        }

        private void OnSelected(object parm)
        {
            mediator.NotifyColleagues<ITransitStop>(EventNames.SelectedStop, this.Stop);
        }
            
    }
}
